import { LoginModel } from "@/types";
import { http } from "../index";

async function Login(model: LoginModel) {
  const res = await http.post("/auth/login", model);
  return res.data;
}
export { Login };
